package com.lg.erp.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lg.erp.entity.SCompany;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lg
 * @since 2021-04-20
 */
@Component
public interface SCompanyMapper extends BaseMapper<SCompany> {

    IPage<SCompany> selectCompanyByPage(Page<SCompany> page);

    IPage<SCompany> searchCompanyByCompanyNameAndPage(String keyWord, String province, String city, String area,Page<SCompany> page);

    IPage<SCompany> selectSupplierByPage(Page<SCompany> page);

    IPage<SCompany> searchSupplierByCompanyNameAndPage(String keyWord, String province, String city, String area,Page<SCompany> page);

    IPage<SCompany> selectSupplierByPageAndCompanyId(Page<SCompany> page,String companyId);

    IPage<SCompany> searchSupplierBySupplierNameAndPage(String keyWord, String province, String city, String area, Page<SCompany> page,String companyId);
}

